package org.test.springcloud.treeleaf.web;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yaoshuhong
 * @date 2016-08-10 14:44
 */
@Component
@ConfigurationProperties("treeleaf.default")
public class WebConfig {

    private String errorTip = "网络繁忙,请稍后尝试";
    private boolean errorRedirect = false;
    private String errorView = "/error.html";

    public String getErrorTip() {
        return errorTip;
    }

    public void setErrorTip(String errorTip) {
        this.errorTip = errorTip;
    }

    public boolean isErrorRedirect() {
        return errorRedirect;
    }

    public void setErrorRedirect(boolean errorRedirect) {
        this.errorRedirect = errorRedirect;
    }

    public String getErrorView() {
        return errorView;
    }

    public void setErrorView(String errorView) {
        this.errorView = errorView;
    }
}
